﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace PSE.AuditLogging.StorageService.Management.ServiceContracts
{
    [ServiceContract(Name = "ServiceManager",
    Namespace = "http://www.bovespa.com.br/AuditLogging/StorageService/Services",
    SessionMode = SessionMode.Required)]
    public interface IServiceManager
    {
        [OperationContract(Action = "StartProduct")]
        bool StartProduct(string productId);
        [OperationContract(Action = "StopProduct")]
        bool StopProduct(string productId);
        [OperationContract(Action = "RestartProduct")]
        bool RestartProduct(string productId);

        [OperationContract(Action = "GetRunningProducts")]
        List<string> GetRunningProducts();

        [OperationContract(Action = "GetRunningInstances")]
        List<string> GetRunningInstances(string productId);
    }
}
